/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aqlm.data;

import java.text.DateFormat;
import java.text.ParseException;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author hironaga
 */
public class UDOUtils {

    private UDOUtils() {}

    public static Date getOnDateType(String src, DateFormat format){

        Date date = null;
        try {
            date = format.parse(src);
        } catch (ParseException ex) {
            throw new IllegalArgumentException(ex);
        }
        return date;
    }

//    public static String getDateOnString(Date date, DateFormat format){
//
//        String formatStr = null;
//        formatStr = format.format(date);
//        return formatStr;
//    }

}
